package com.qf.service.impl;

import com.qf.mapper.UserdetailsMapper;
import com.qf.pojo.Userdetails;
import com.qf.service.UserdetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserdetailsServiceImpl implements UserdetailsService {
    @Resource
    UserdetailsMapper userdetailsMapper;

    @Override
    public List<Userdetails> findAll() {
        return userdetailsMapper.findAll();
    }

    @Override
    public int add(Userdetails userdetails) {
        return userdetailsMapper.add(userdetails);
    }

    @Override
    public int update(Userdetails userdetails) {
        return userdetailsMapper.update(userdetails);
    }

    @Override
    public int delete(int udid) {
        return userdetailsMapper.delete(udid);
    }

    @Override
    public Userdetails findUserdetailsByUdid(int udid) {
        return userdetailsMapper.findUserdetailsByUdid(udid);
    }
}
